package com.example.ssmp.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.ssmp.bean.Book;

import java.util.List;


public interface IBookService extends IService<Book> {
//
//    boolean saveBook(Book book);
//
//    boolean modify(Book book);
//
//    boolean delete(Integer id);
//
//    IPage<Book> getPage(int currentPage, int pageSize);
//
//    IPage<Book> getPage(int currentPage, int pageSize, Book book);


    boolean saveBook(Book book);

    boolean modify(Book book);

    boolean delete(Integer id);

    List<Book> getby(String value);
     Page<Book> getPage(int current, int size);
    Page<Book> getPage(int current, int size, Book book);
}
